import {
    CommonMeta,
    AuthMeta,
    individualChild,
    SearchChildren,
    SearchMeta
} from "./children"
// 路由配置
export default [{
        path: "/",
        redirect: "/login",
    },
    {
        path: '/login',
        name: 'login',
        component: () =>
            import ("@/views/User/Login"),
        meta: AuthMeta
    },
    {
        path: "/register",
        name: "register",
        component: () =>
            import ("@/views/User/Register"),
        meta: AuthMeta
    },
    {
        path: "/forgetPassword",
        name: "ForgetPassword",
        component: () =>
            import ("@/views/User/ForgetPassword"),
        meta: AuthMeta
    },
    {
        path: "/home",
        name: "Home",
        component: () =>
            import ("@/views/Home"),

        meta: CommonMeta
    },
    {
        path: "/homePage/:id",
        name: "HomePage",
        component: () =>
            import ("@/views/User/HomePage"),
        meta: CommonMeta
    },
    {
        path: "/individual",
        name: "Individual",
        component: () =>
            import ("@/views/User/Individual"),
        children: individualChild,
        meta: CommonMeta
    },
    {
        path: "/article",
        name: "Article",
        component: () =>
            import ("@/views/Article"),
        meta: CommonMeta
    },
    {
        path: "/articleDetail/:id",
        name: "ArticleDetail",
        component: () =>
            import ("@/views/Article/ArticleDetail"),
        meta: CommonMeta
    },
    {
        path: "/publisharticle",
        name: "PublishArticle",
        component: () =>
            import ("@/views/Publish/PublishArticle"),
        meta: CommonMeta
    },
    {
        path: "/video",
        name: "Video",
        component: () =>
            import ("@/views/Video"),
        meta: CommonMeta
    },
    {
        path: "/publishvideo",
        name: "PublishVideo",
        component: () =>
            import ("@/views/Publish/PublishVideo"),
        meta: CommonMeta
    },
    {
        path: "/videoDetail/:id",
        name: "VideoDetail",
        component: () =>
            import ("@/views/Video/VideoDetail"),
        meta: CommonMeta
    },
    {
        path: "/document",
        name: "Document",
        component: () =>
            import ("@/views/Document"),
        meta: CommonMeta
    },
    {
        path: "/publishDocument",
        name: "PublishDocument",
        component: () =>
            import ("@/views/Publish/PublishDocument"),
        meta: CommonMeta
    },
    {
        path: "/announcementDetail",
        name: "AnnouncementDetail",
        component: () =>
            import ("@/views/AnnouncementDetail.vue"),
        meta: CommonMeta
    },
    {
        path: "/musicScore",
        name: "MusicScore",
        component: () =>
            import ("@/views/MusicScore"),
        meta: CommonMeta
    },
    {
        path: "/publishmusicScore",
        name: "PublishMusicScore",
        component: () =>
            import ("@/views/Publish/PublishMusicScore"),
        meta: CommonMeta
    },
    {
        path: "/musicScoreDetail/:id",
        name: "MusicScoreDetail",
        component: () =>
            import ("@/views/MusicScore/MusicScoreDetail"),
        meta: CommonMeta
    },
]